package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.ProcessOrderQuotaDetail;
import com.qijian.maindata.domain.query.ProcessOrderQuotaDetailQuery;
import com.qijian.maindata.domain.vo.ProcessOrderQuotaDetailVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 工单定额异常 流程 明细Mapper接口
 *
 * @author qijian
 * @date 2024-04-23
 */
public interface ProcessOrderQuotaDetailMapper extends BaseMapper<ProcessOrderQuotaDetail> {

    Page<ProcessOrderQuotaDetailVo> selectPageVo(Page<ProcessOrderQuotaDetailVo> page, @Param(Constants.WRAPPER) Wrapper<ProcessOrderQuotaDetailQuery> queryWrapper);

    @Update("update main_process_order_quota_detail set status=1 where main_id=#{mainId} and is_del=0")
    void updateStatus(@Param("mainId") Long mainId);
}
